using Grpc.Core;
using Md.Demo.BLL;
using Md.Demo.IBLL;
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Md.Demo.Service
{
    public class GreeterService : Greeter.GreeterBase
    {
        private readonly IGreeterApplication _greeterApplication;
        public GreeterService(IGreeterApplication greeterApplication)
        {
            _greeterApplication = greeterApplication;
        }

        public override Task<HelloReply> SayHello(HelloRequest request, ServerCallContext context)
        {
            return _greeterApplication.SayHello(request);
        }
    }
}
